package com.codeZ.BuilderPattern.example01.builder;

import com.codeZ.BuilderPattern.example01.product.Bike;

/**
 * 摩拜单车建造者
 * @author codeZhang
 * @Date 2024/8/2 16:09
 */
public class MobikeBuilder extends Builder{

    @Override
    public void buildFrame() {
        mBike.setFrame("铝合金车架");
    }

    @Override
    public void buildSeat() {
        mBike.setSeat("真皮车座");
    }

    @Override
    public Bike createBike() {
        return mBike;
    }
}
